package com.x.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * ClassName: TopService
 * Package: IntelliJ IDEA
 * Description:
 * Written by HanXu
 * Create 2024.09.06 8:52
 */

@Service
public class TopService {

    @Autowired
    StudentService service;

    @Transactional
    public void topService(){
        service.changeName();
        service.changeAge();
    }
}
